package com.itheima.mapper;

import com.itheima.domain.Student;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface StudentMapper {
    @Select("select * from student")
    List<Student> findAll();
    @Update("update student set name=#{name} where id=#{id}")
    void update(@Param("id") Integer id,@Param("name") String name);
}
